#! /usr/bin/make -f 

DEB_PYTHON_SYSTEM     := pycentral
DEB_SRCDIR            := src
DEB_COMPRESS_EXCLUDE  := cvxopt.pdf
DEB_SHLIBDEPS_INCLUDE := /usr/lib/atlas

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

build/python-cvxopt:: debian/stamp-docs
debian/stamp-docs:
	make -C doc latex
	cd doc  && dvipdf cvxopt.dvi
	touch $@

#install/python-cvxopt::
#	dh_install -ppython-cvxopt doc/cvxopt/*.html doc/cvxopt/*.gif doc/cvxopt/*.css usr/share/doc/python-cvxopt/html

clean::
	$(RM) debian/stamp-docs 
	$(RM) doc/cvxopt.pdf
	make -C doc clean
	$(RM) -r src/build

get-orig-source:
	uscan --rename --upstream-version 0 || true
	@echo successfully retrieved upstream tarball
